﻿[CmdletBinding()]
param (
    [Parameter()]
    [string]
    $ConfigurationName,
    [string]
    $ProjectDir,
    [string]
    $TargetDir,
    [string]
    $TargetFramework
)
# 如果只针对项目而不是解决方案编译，那SolutionDir就得不到正确的路径。
$Destination = "${ProjectDir}../csharp-test/bin/${ConfigurationName}/${TargetFramework}/plugins/grpc"
Write-Output "Destination: $Destination"
if ( -not(Test-Path -Path $Destination)) {
    mkdir $Destination
}
Copy-Item ${TargetDir}* $Destination
